package com.test.hello.dao;

import java.util.List;

import com.test.hello.model.UserRole;

public interface UserRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);
    
    /**
     * 根据用户id查询角色
     * @param userid
     * @return
     */
    List<UserRole> findByUserid(Long userid);
}